import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/drama_interact_info_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class DramaInteractInfoEntity {
	int? praise;
	int? collect;
	int? share;
	@JSONField(name: "praise_bool")
	bool? praiseBool;
	@JSONField(name: "collect_bool")
	bool? collectBool;
	@JSONField(name: "share_bool")
	bool? shareBool;

	DramaInteractInfoEntity();

	factory DramaInteractInfoEntity.fromJson(Map<String, dynamic> json) => $DramaInteractInfoEntityFromJson(json);

	Map<String, dynamic> toJson() => $DramaInteractInfoEntityToJson(this);

	DramaInteractInfoEntity copyWith({int? praise, int? collect, int? share, bool? praiseBool, bool? collectBool, bool? shareBool}) {
		return DramaInteractInfoEntity()
			..praise= praise ?? this.praise
			..collect= collect ?? this.collect
			..share= share ?? this.share
			..praiseBool= praiseBool ?? this.praiseBool
			..collectBool= collectBool ?? this.collectBool
			..shareBool= shareBool ?? this.shareBool;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}